package com.workcell.workdata.xthings.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.workcell.workdata.xthings.dto.CodeChainnumVo;
import com.workcell.workdata.xthings.entity.CodeChainnum;
import com.workcell.workdata.xthings.entity.CodePowermeter;

import java.util.List;

/**
 * 功率计二维码
 *
 * @author 廖博文
 * @date 2022-11-28 10:15:25
 */
public interface CodePowermeterService extends IService<CodePowermeter> {

	/**
	 * 保存二维码基本快照信息
	 * @param codeChainnum
	 * @return
	 */
	Boolean saveCodeBaseInfo(CodeChainnum codeChainnum, CodeChainnumVo.SaveChainNumVo saveChainNumVo);

	/**
	 * 获取硬件清单
	 * @return
	 */
	List<JSONObject> getHardwareList();

	/**
	 * 查询硬件基本信息
	 * @param baseIds
	 * @return
	 */
	Object getHardwareBase(String baseIds);

	/**
	 * 查询硬件快照信息
	 * @param codeId
	 * @return
	 */
	Object getHardwareInfo(String codeId);
}
